//管理员列表
exports.master_list = function (req, res) {

    var restfulParams = req.routeInfo.restfulParams;
    //最终结果
    var resultData = {};

    //任务流创建
    async.waterfall([
            //1.查询要添加的用户是否已注册
            function (cb) {
                R.SEND_HTTP(
                    req,
                    {
                        url: CORE_APIConfig.coreAPI.searchOrganizationUserFixUser + "/ou_oid/" + restfulParams.organization_id ,
                        method: 'POST',
                        data: {
                            fields: ["u_id","ou_id","u_username","ou_name","ou_phone"].join(",")
                        }
                    },
                    function (err, data) {
                        //判断是否有错误信息
                        if (err) {
                            return cb(err, data);
                        }
                        resultData.userData = data.data;
                        cb();
                    }
                );

            }
        ], function (err, result) {

            //返回最终拼接结果
            RES.response(res, true, resultData);

        }
    );

}